<?php
/*
 * This file contains all of the post page rendering and options
 */

if(!class_exists('CollegePressPostOptions')) {
class CollegePressPostOptions {
	var $cpOptionsName = 'CollegePressPostionOptions';

	function cpPostForm($entryType = 'post') {
		//$post = $this->addPostData($post, true); //TODO copied from podPress template, what does this do?
		if(($_GET['action'] == 'edit')) {
			$post_id = $_GET['post'];
		
			if(!is_array($post->cpPostOptions)) {
				$post->cpPostOptions = array();
			}
		}
		
		?>
		<!--Checkbox HTML-->
		<div id="cpOptions" class="dbx-group">
			<div class="dbx-b-ox-wrapper">
			<fieldset id="cpBreakingNews" class="dbx-box">
				<h3 class="dbx-handle">College Press</h3>
			</div>
			<div class="dbx-c-ontent-wrapper">
				<div class="dbx-content">
					<label for="cpBreakingPost">Breaking News Post</label>
					<form name="dofollow" action="" method="post">
					<input type="checkbox" name="cpBreakingPost" <?php if ($post->cpPostOptions['cpBreakingPost'] == 'true') echo 'checked=\"1\"'; ?>/>
					<p class="submit">
					<input type="hidden" name="action" value="cpBreakingPost" /> 
					<input type="hidden" name="page_options" value="cpBreakingPost" /> 
					<input type="submit" name="Submit" value="<?php _e('Update Options', 'cpBreakingPost')?> &raquo;" /> 
					</p>
				</form>
				</div>
			</fieldset>
			</div>
		</div>
	
		<?php
	}
	
	
	function cpPostFormSave($postID) {
		if ( !current_user_can('edit_post', $postID) )
			return $post_id;
	
	
	
	
	
	}
	
} //END CollegePressPostOptions class
} //END class check

?>
